package Test;

import EurekaAnalyzer.IDInformation;
import EurekaProcessor.PipelineMgr;
import junit.framework.TestCase;

public class TestPipelineMgr extends TestCase {
	private String configfile = "./TestData/TestPMgr/TestPipelineMgr";
	private PipelineMgr pMgr;
	protected void setUp() throws Exception {
		super.setUp();
		pMgr = new PipelineMgr(configfile);
		pMgr.Process();
	}

	public void testGetInformationByID() {
		IDInformation idi = pMgr.GetIDInformationByID("wsl");
		assertNotNull(idi);
		assertEquals(8, idi.GetAppearanceByBoard("Single"));
		assertEquals(1, idi.GetPostCnt());
		assertEquals(7, idi.GetReplyCnt());
		assertEquals(6, idi.GetFriendCount());
		
		IDInformation idj = pMgr.GetIDInformationByID("feelings");
		assertNotNull(idj);
		assertEquals(10, idj.GetAppearanceByBoard("Single"));
		assertEquals(0, idj.GetPostCnt());
		assertEquals(10, idj.GetReplyCnt());
		assertEquals(0, idj.GetFriendCount());
		
	}

}
